export default function querySelector(seletor) {
  return new Promise((resolve,reject)=> {
    const query = wx.createSelectorQuery()
    query.select(seletor).boundingClientRect()
    query.exec((res)=> {
      resolve(res)
    })
  })
}